bin=fs_create fs_del fs_list fs_add
CC=gcc -Wall
LD=gcc

all: $(bin)

fs_create: fs_create.c fs.h
	@echo "----------------------"	
	@echo $@
	$(LD) -o $@ $<
	
fs_del: fs_del.o bit_map.o
	@echo "----------------------"	
	@echo $@
	$(LD) -o $@ $^	

fs_del.o: fs_del.c bit_map.h
	$(CC) -c $<

fs_list: fs_list.c fs.h
	@echo "----------------------"	
	@echo $@
	$(LD) -o $@ $<
	
fs_add: fs_add.c fs.h
	@echo "----------------------"	
	@echo $@
	$(LD) -o $@ $< -lm

bit_map.o: bit_map.c bit_map.h
	$(CC) -c $<
	
clean:
	/bin/rm -f *.o *.img *.bin $(bin) *~
